Body structure (JSON)
Required fields are in bold.
| Field | Example | Type and format | Comments |
| { | |||
| "msgID" | 16, | int | |
| "currency" | "UAH", | string | |
| "totalAmount" | 1200000, | int | |
| "zNumber" | 4, | int | shift number, should be unique for deviceID |
| "fiscalNum" | 70113, | int | |
| "receiptNumber" | 1, | int | receipt number, should be unique for the shift and deviceID |
| "parentFiscalNum" | 3, | int | fiscal number of the parent document; should be present in the database |
| "cashier" | "Cashier 1", | string | |
| "dateTime" | "2025-01-02T092521.076Z", | dateTime of ISO-8601 format | |
| "location" | optional | ||
| { | |||
| "latitude" | 6.500183676689106, | float | |
| "longitude" | 120.76210479216934, | float | |
| "radius" | 1000 | int | |
| }, | |||
| "identity" | |||
| { | |||
| "fn" | "567765", | string | device token |
| "tin" | "1111111111", | string | |
| "shopName" | "SHOP #1", | string | |
| "shopAddress" | "Unknown st., 404" | string | |
| }, | |||
| } |
Example:
{
"msgID": 16,
"currency": "UAH",
"totalAmount": 20000,
"zNumber": 4,
"fiscalNum": 70113,
"receiptNumber": 1,
"parentFiscalNum": 3,
"cashier": "Cashier 1",
"dateTime": "2025-01-02T092521.076Z",
"location": {
"latitude": 6.500183676689106,
"longitude": 120.76210479216934,
"radius": 1000
},
"identity": {
"fn": "567765",
"tin": "1111111111",
"shopName": "SHOP #1",
"shopAddress": "Unknown st., 404"
}
}